package com.springinaction.ch04.introducexml;

import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;

@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration("classpath:com/springinaction/ch04/introducexml/aopdeclare.xml")
public class EncoreableTest {
    @Autowired
    private Performance performance;

    @Test
    public void aopEncoreableTest(){
         performance.perform();
         Encoreable encoreable=(Encoreable) performance;
         encoreable.performenEncore();
    }

}
